home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Programmer's Power Pack
/
Delphi Volume 1.iso
/
s_to_z
/
tfincalc
/
unit1.pas
< prev
Wrap
Pascal/Delphi Source File
|
1996-09-15
|
1KB
|
64 lines
unit Unit1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Fincalc, Buttons;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
Button2: TButton;
BitBtn1: TBitBtn;
Label1: TLabel;
FinCalcDlg1: TFinCalcDlg;
procedure Button1Click(Sender: TObject);
procedure Edit1DragDrop(Sender, Source: TObject; X, Y: Integer);
procedure Edit1DragOver(Sender, Source: TObject; X, Y: Integer;
State: TDragState; var Accept: Boolean);
procedure Edit1EndDrag(Sender, Target: TObject; X, Y: Integer);
procedure Button2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
FinCalcDlg1.execute ;
end;
procedure TForm1.Edit1DragDrop(Sender, Source: TObject; X, Y: Integer);
begin
DropDrag(Sender, Source, X, Y);
end;
procedure TForm1.Edit1DragOver(Sender, Source: TObject; X, Y: Integer;
State: TDragState; var Accept: Boolean);
begin
Accept:=true;
end;
procedure TForm1.Edit1EndDrag(Sender, Target: TObject; X, Y: Integer);
begin
DragEnd;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
FinCalcDlg1.close ;
end;
end.